`endCall` function and custom function getting cal...
# support
a
[Re-opening as support bot closed incorrectly] Hi team, we have an assistant that keeps calling two functions at the exact same timestamp. Both
endCall
and a custom function we created. The prompt clearly has these as two separate steps but we keep running into this case. Is this purely a prompting issue? Or could there be another issue here? The outcome is that the assistant unexpectadly ends the call while processing a user request, so quite concerning. Call ID: 69368463-1f60-48c6-add0-91970608a5c2 Timestamp: 15:47:11:332 Assistant ID: 875a708f-c3b2-4433-9d0b-5d43da9544d2
v
message has been deleted
@amir I'm sorry to hear about the issue you're experiencing with the assistant calling two functions simultaneously. It could be related to the way the prompt is structured, which might be causing the assistant to interpret the instructions as needing to perform both actions at the same time. However, it could also be a problem with the assistant's logic or a bug in the system. To better assist you, I would need to review the specific prompt and the logic that's leading to the simultaneous function calls. If you could provide the prompt or any additional context, that would be very helpful. In the meantime, you may want to review the prompt to ensure that the instructions for calling functions are clearly delineated and that there's no ambiguity that could lead to this behavior. If the prompt is clear and the issue persists, it might be necessary to investigate further for potential bugs or misconfigurations in the assistant's setup. Please let me know how you would like to proceed or if there's any other information you can share to help resolve this issue.
You can continue this conversation by mentioning me in the message.
s
@amir this issue is related to prompting, and you have to refactor your following prompt.
Copy code
Once the customer finishes asking their questions, say: "Thank you, and have a great day!" Wait for the customer to respond, then use the 'endCall' function.
Hint
- - trigger the 'endCall` function
2 Views